#ifndef KEYEVENT_H
#define KEYEVENT_H

#include <QLabel>

class KeyEvent : public QLabel
{
    Q_OBJECT
public:
    explicit KeyEvent(QWidget *parent = nullptr);

private:
	int parent_h;
	int parent_w;

private:
	void getParent_size();

protected:
	void keyPressEvent(QKeyEvent *event);
	void keyReleaseEvent(QKeyEvent *event);
};

#endif // KEYEVENT_H
